<cfif structKEyExists(url,"state")>
	<cfset date = url.state />
<cfelse>
	<cfset date = "" />
</cfif>
<cfif structKEyExists(url,"code")>
	<cfset code = url.code />
<cfelse>
	<cfset code = "" />
</cfif>

<cflocation url="/cfcs/action.cfm?cfc=calendarController&method=connectToCalendar&date=#date#&code=#code#" addToken="no" />